import request from '@/utils/request'

// 查询用户赠品领取信息列表
export function listDetail(query) {
  return request({
    url: '/prod-api/activity/giftDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户赠品领取信息详细
export function getDetail(detailUid) {
  return request({
    url: '/prod-api/activity/giftDetail/' + detailUid,
    method: 'get'
  })
}

// 新增用户赠品领取信息
export function addDetail(data) {
  return request({
    url: '/prod-api/activity/giftDetail',
    method: 'post',
    data: data
  })
}

// 修改用户赠品领取信息
export function updateDetail(data) {
  return request({
    url: '/prod-api/activity/giftDetail',
    method: 'put',
    data: data
  })
}

// 删除用户赠品领取信息
export function delDetail(detailUid) {
  return request({
    url: '/prod-api/activity/giftDetail/' + detailUid,
    method: 'delete'
  })
}
